{extend name="base/main" /}
{block name="body"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>角色管理 / 数据权限</h5>
            </div>
            <div class="ibox-content">
                <form id="f" action="{:url('AuthRole/dataAuth')}" class="form-horizontal m-t">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">角色名称：</label>
                        <div class="col-sm-4">
                            <input value="{$find.title}" class="form-control" type="text" readonly="readonly" disabled="disabled">
                            <span class="help-block m-b-none Validform_checktip"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">权限范围：</label>
                        <div class="col-sm-4">
                            <select name="data_auth" class="form-control" datatype="*" nullmsg="请选择数据权限" errormsg="请选择数据权限">
                                {volist name="dataAuthArr" id="vo"}
                                    <option value="{$key}" {if condition="$key == $find.data_auth"}selected="selected"{/if} >{$vo}</option>
                                {/volist}
                            </select>
                            <span class="help-block m-b-none Validform_checktip" ><i class="fa fa-info-circle"></i> 选择权限范围</span>
                            <!--<span class="help-block m-b-none" style="color: red;">
                                <i class="fa fa-circle"></i>
                                选择权限范围
                            </span>-->
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-3">
                            <input type="hidden" name="id" value="{$find.id}" />
                            <button class="btn btn-primary" type="submit">提交</button>
                            <button class="btn btn-default historygo" type="button">返回</button>
                        </div>
                    </div>
                </form>
            </div>
                
        </div>
    </div>
{/block}